import * as Types from './mutations-type.js'

export default {
  // 设置博客分类
  [Types.SET_CATEGORY](state, payload) {
    state.typeList = payload
  },
  // 设置博客标签
  [Types.SET_TAG](state, payload) {
    state.tagList = payload
  },
  // 设置最新推荐
  [Types.SET_RECOMMEND](state, payload) {
    state.recommendList = payload
  },
  // 设置归档
  [Types.SET_ARCHIVES](state, payload) {
    state.archivesList = payload
  },
  // 设置轮播图
  [Types.SET_CAROUSEL](state, payload) {
    state.carouselList = payload
  }
}
